<?php

/**
 * @author christian
 * @copyright 2011
 * @abstract carga de todo el itinerario que es parte de un tour del itenario del tour
 */
 


$ruta=$_SERVER['DOCUMENT_ROOT']."/viventura"."/MDGuide";
include_once("$ruta/conf/CConfig.php");
include_once("$ruta/elements/head.tpl");
include_once("$ruta/MDGuideData/CGuideTableDraw.php");

include_once("$ruta/star.php");
include_once("$ruta/view/CDrawMenuTour.php");


if (!isset($_GET['codigo'])) {$_GET['codigo'] = "NULL"; }
$id=$_GET['codigo'];

$items=array("Nuevo Tour"=>"CSmallDefinePack.php","Nuevo paquete"=>"g","Ver paquetes"=>"/viventura/MDGuide/","Otra"=>"g");

CDrawMenuTour::getInstance()->setMenu($items);
CDrawMenuTour::getInstance()->rigth_side_begin();//empieza lado derecho 
CDrawMenuTour::getInstance()->DrawDivAdBegin("content_area_user_title","1");echo "<h1>Destino Sur</h1>";
CDrawMenuTour::getInstance()->DrawDivAdEnd();


//SELECT `pack_has_tour_has_guidetc`.`guidetc_idGuide`,`pack_has_tour_has_guidetc`.`GuiDateIn`,`pack_has_tour_has_guidetc`.`GuiDateOut`,`pack_has_tour`.`TOUR_idTour`,`tour`.`NamTypTour`,`pack_has_tour`.`DateBegTour`,`pack_has_tour`.`DateEndTour` FROM pack_has_tour_has_guidetc
   


$columnas=array("idPackTourGui"=>"Contrato","IdPackTour"=>"Tour",  "GuiDateIn"=>"Inicio" ,  "GuiDateOut"=>"Final" ,  "NamTypTour"=>"Tour" ,  "DateBegTour"=>"tipo", "DateEndTour"=>"tipo" );
CGuideTableDraw::getInstance()->DrawTable("Tours","pack_has_tour","pack_has_tour_has_guidetc",$columnas,$id);






?>